var mod = angular.module('app.routing-app2', []);

mod.config(['$routeSegmentProvider', function ($routeSegmentProvider) {
    $routeSegmentProvider.when('/report-problem', 'top.report-problem').within('top').segment('report-problem', {
        template: '<app2-report-problem></app2-report-problem>'
    });

    $routeSegmentProvider.when('/shards', 'top.shards').within('top').segment('shards', {});

    $routeSegmentProvider.when('/overview/power', 'top.power').within('top').segment('power', {});

    $routeSegmentProvider.when('/power-promo', 'top.power-promo').within('top').segment('power-promo', {});

    $routeSegmentProvider.when('/nw-menu', 'nw-menu').segment('nw-menu', {
        template: '<div></div>'
    });

    $routeSegmentProvider.when('/sim', 'top.sim').within('top').segment('sim', {
        // template: '<app2-router-outlet></app2-router-outlet>',
    });

    $routeSegmentProvider.when('/sim/tutorial', 'top.sim.tutorial-index').within('top').within('sim').segment('tutorial-index', {
        template: ''
    });

    $routeSegmentProvider.when('/market', 'top.market').within('top').segment('null', {});

    $routeSegmentProvider.when('/market/all', 'top.market.all').within('top').within('market').segment('all', {
        // template: '<app2-market></app2-market>',
    });

    $routeSegmentProvider.when('/market/all/:resourceType', 'top.market.all.all-orders-resource').within('top').within('market').within('all').segment('all-orders-resource', {
        // template: ''
    });

    $routeSegmentProvider.when('/market/all/:shard/:resourceType', 'top.market.all.all-orders-resource').within('top').within('market').within('all').segment('all-orders-resource', {
        // template: ''
    });

    $routeSegmentProvider.when('/market/my', 'top.market.my').within('top').within('market').segment('my', {
        // template: '<app2-market></app2-market>',
    });

    $routeSegmentProvider.when('/market/history', 'top.market.history').within('top').within('market').segment('history', {
        // template: '<app2-market></app2-market>',
    });

    $routeSegmentProvider.when('/inventory', 'top.inventory').within('top').segment('null', {});

    $routeSegmentProvider.when('/inventory/:id', 'top.inventory.decoration').within('top').within('inventory').segment('decoration', {});

    $routeSegmentProvider.when('/map2', 'top.map2').within('top').segment('map2', {});

    $routeSegmentProvider.when('/map2/:shard', 'top.map2shard').within('top').segment('map2shard', {});

    $routeSegmentProvider.when('/enter', 'top.enter').within('top').segment('enter', {});

    $routeSegmentProvider.when('/seasons', 'top.seasons').within('top').segment('seasons', {});

    $routeSegmentProvider.when('/seasons/chronicle', 'top.seasons.chronicle').within('top').within('seasons').segment('chronicle', {});

    $routeSegmentProvider.when('/seasons/score', 'top.seasons.score').within('top').within('seasons').segment('score', {});

    $routeSegmentProvider.when('/seasons/rating', 'top.seasons.rating').within('top').within('seasons').segment('rating', {});

    $routeSegmentProvider.when('/seasons/archive', 'top.seasons.archive').within('top').within('seasons').segment('archive', {});

    $routeSegmentProvider.when('/seasons/archive/:id', 'top.seasons.archive.item').within('top').within('seasons').within('archive').segment('item', {});

    $routeSegmentProvider.when('/seasons/archive/:id/rating', 'top.seasons.archive.item.rating').within('top').within('seasons').within('archive').within('item').segment('rating', {});

    $routeSegmentProvider.when('/arena', 'top.arena').within('top').segment('arena', {});

    $routeSegmentProvider.when('/season-world-landing', 'top.season-world-landing').within('top').segment('season-world-landing', {});
}]);
